package cn.yitun.chat.yitunservercommonlib.converter.po2vo.group;

import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupCategoryInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupCategoryVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群组分类
 */
@Mapper(componentModel = "spring")
public interface GroupCategoryPo2VoConverter {
    GroupCategoryPo2VoConverter INSTANCE = Mappers.getMapper(GroupCategoryPo2VoConverter.class);

    GroupCategoryInfo vo2po(GroupCategoryVo vo);

    List<GroupCategoryInfo> vo2po(List<GroupCategoryVo> voList);

    @InheritInverseConfiguration
    GroupCategoryVo po2vo(GroupCategoryInfo info);
    @InheritInverseConfiguration
    List<GroupCategoryVo> po2vo(List<GroupCategoryInfo> infoList);
}
